function check_if_ROIs_selected(userID)

% adata_dir='\\KELLER-RIG1-ANA\RawData\';

[~,host] = dos('hostname');
if ~isempty(regexp(host,'f410l-c2cdd3', 'once'))
    adata_dir='G:\AData\';
    stacks_dir='G:\ExpLog\Stacks.xlsx';
else
    adata_dir='\\argon.fmi.ch\keller.g\AData\';
    stacks_dir='\\argon.fmi.ch\keller.g\ExpLog\Stacks.xlsx';
end

[xls_num,xls_txt]=xlsread(stacks_dir);
expIDs=[];
% mouseIDs={};
cnt=1;
for ynd=1:size(xls_num,1)
    if ~isempty(strfind(xls_txt{ynd+1,10},userID))
        expIDs(cnt)=xls_num(ynd,2);
        %         if ~isempty(xls_txt{ynd+1,4})
        %             mouseIDs{cnt}=xls_txt{ynd+1,4};
        %         end
        cnt=cnt+1;
    end
end
expIDs=unique(expIDs);

if userID=='zmarpawe'
    expIDs(expIDs<1340)=[];
end

res={};
cnt=1;
for ind=1:length(expIDs)
    %     display(['Now evaluating experiment ' num2str(expIDs(ind)) '*******************'])
    [adata_file,mouse_id,userID]=find_adata_file(expIDs(ind),adata_dir);
    if isempty(adata_file)
        display('Found no Adata file')
    else
        matobj=matfile([adata_dir '\' userID '\' mouse_id '\' adata_file]);
        if iscell(matobj.bv)
            tempmat=matobj.ROIs(1,1);
            if size(tempmat{1},2)==1
                res{cnt,1}=mouse_id;
                res{cnt,2}=expIDs(ind);
                cnt=cnt+1;
            end
        else
            if size(matobj.ROIs,2)==1
                res{cnt,1}=mouse_id;
                res{cnt,2}=expIDs(ind);
                cnt=cnt+1;
            end
        end
    end
end

un_mice=unique(res(:,1));
sorted_res={};
cnt=0;
for knd=1:length(un_mice)
    cur_exps=strmatch(un_mice{knd},res(:,1));
    tmp=[];
    for tnd=1:length(cur_exps)
        tmp(1,tnd)=res{cur_exps(tnd),2};
    end
    sorted_res{knd}=tmp;
end

for hnd=1:length(un_mice)
    display('************************')
    display(un_mice{hnd})
    display(num2str(sorted_res{hnd}))
end

